package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.CategoryAttrGroupsAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lxx
 * @email 1914264274@qq.com
 * @date 2022-03-08 11:28:16
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params,Integer catelogId);

    List<AttrEntity> queryRelation(Long attrgroupId);

    void delBatch(List<AttrAttrgroupRelationEntity> attrgroupRelationEntities);

    PageUtils getNoRelation(Map<String, Object> params,Long attrgroupId);

    List<CategoryAttrGroupsAttrsVo> selectGroupsAttrsByCatLogId(Long cateLogId);
}

